package com.ruoyi.demo.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 专场商品关联对象 auction_session_goods
 *
 * @author metaee
 * @date 2025-03-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("auction_session_goods")
@ApiModel("专场商品关联")
public class AuctionSessionGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty("ID")
    @TableId
    private Long id;

    /** 专场ID */
    @ApiModelProperty("专场ID")
    @Excel(name = "专场ID")
    private Long sessionId;

    /** 商品ID */
    @ApiModelProperty("商品ID")
    @Excel(name = "商品ID")
    private Long goodsId;

    /** 展示顺序 */
    @ApiModelProperty("展示顺序")
    @Excel(name = "展示顺序")
    private Integer displayOrder;

    /** 是否推荐（0否 1是） */
    @ApiModelProperty("是否推荐")
    @Excel(name = "是否推荐", readConverterExp = "0=否,1=是")
    private String isFeatured;

    /** 状态（0正常 1下架） */
    @ApiModelProperty("状态")
    @Excel(name = "状态", readConverterExp = "状态（0正常 1下架）")
    private String status;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sessionId", getSessionId())
            .append("goodsId", getGoodsId())
            .append("displayOrder", getDisplayOrder())
            .append("isFeatured", getIsFeatured())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
